package com.wjq.mapper;


import com.wjq.entity.ChoiceQuestion;
import com.wjq.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
public interface ChoiceQuestionMapper {

    List<Question> queryQuestionList();

    List<ChoiceQuestion> queryList(Integer questionnaire_id);

    ChoiceQuestion selectChoiceQuestionById(Integer id);

    void updateChoiceQuestion(ChoiceQuestion question);

    void deleteChoiceQuestionById(Integer id);

    void addChoiceQuestion(ChoiceQuestion question);

    int getChoiceQuestionId(ChoiceQuestion choiceQuestion);
}
